package actions;

import java.util.Map;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.interceptor.SessionAware;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

@Action(value = "/BuscarTesisPalabraClave")
@Result(location = "/jsp/principal/frontend.jsp", name = "SUCCESS")

public class BuscarTesisPalabraClaveAction extends ActionSupport implements SessionAware{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Map<String, Object> session;
	private String palabraClave;
	
	
	public String execute() {		
		session=ActionContext.getContext().getSession();
		session.put("palabraClave", getPalabraClave());
		session.put("contenido", "/jsp/contenido/tablaBuscador.jsp");
		session.put("dinamico", "false");
		return "SUCCESS";
	}

	
	
	
	@Override
	public void setSession(Map<String, Object> arg0) {
		// TODO Auto-generated method stub
		
	}


	public String getPalabraClave() {
		return palabraClave;
	}




	public void setPalabraClave(String palabraClave) {
		this.palabraClave = palabraClave;
	}

}
